package com.dt76.smallloanbackendservice.service.ysy.impl;

import com.dt76.smallloanbackendservice.mapper.ysy.StreamMapper;
import com.dt76.smallloanbackendservice.pojo.ysy.ApprovalLoan;
import com.dt76.smallloanbackendservice.pojo.ysy.YBankAccount;
import com.dt76.smallloanbackendservice.service.ysy.StreamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StreamServiceImpl implements StreamService {
    //注入dao
    @Autowired
    private StreamMapper streamMapper;

    @Override
    public List<YBankAccount> qryStreamAll() {
        return streamMapper.qryStreamAll();
    }
    @Override
    public void delstr(int yId) {
        streamMapper.delstr(yId);
    }

    @Override
    public ApprovalLoan findOne(int yId) {
        return streamMapper.findOne(yId);
    }
}
